load("//bazel:api.bzl", "modular_py_library", "pkg_files", "requirement", "strip_prefix")

modular_py_library(
    name = "schemas",
    srcs = glob(["*.py"]),
    imports = ["../../.."],
    deps = [
        requirement("pydantic"),
        requirement("typing-extensions"),
    ],
)

pkg_files(
    name = "docs-schema",
    srcs = [
        "openai-docs.yaml",
    ],
    prefix = "max/api",
    strip_prefix = strip_prefix.from_pkg(""),
    visibility = ["//visibility:public"],
)
